tools: do not link against unused libraries.
authorIan Campbell <ian.campbell@citrix.com>
Thu, 17 Mar 2011 19:38:05 +0000 (19:38 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 17 Mar 2011 19:38:05 +0000 (19:38 +0000)
commit494c9074b3dc32b7b3b7f84e6aca2781f9bdc096
tree8000a58e21976f02b503a137c09a299ad375bf58
parent0394b57cda6f09f2d45feaf5a4f9dc62d6798c23
tools: do not link against unused libraries.

A fair few things under tools link against libraries which they don't
even use.

Most of this appears to come from copy-and-pasting previous Makefile
snippets and cargo-culting plus the tendency to define global $(LIBS)
even for Makefiles which build multiple separate utilities or
libraries.

Identified by comparing a build with --as-needed to one without by
looking at the NEEDED header of all ELF objects.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/blktap2/drivers/Makefile
tools/console/Makefile
tools/misc/Makefile
tools/xcutils/Makefile
tools/xcutils/lsevtchn.c